package com.weiyuwqj.server.service.sys.impl;

import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.api.service.SysLogService;
import com.weiyuwqj.server.mapper.SysLogMapper;
import com.weiyuwqj.api.model.SysLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by huzj on 2016/9/22.
 */
@Service("sysLogService")
public class SysLogServiceImpl extends BaseServiceImpl<SysLog> implements SysLogService{

    @Autowired
    SysLogMapper sysLogMapper;


    @Override
    public Date getLastLoginTime(Integer userId) {
        return sysLogMapper.getLastLoginTime(userId);
    }
}
